package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.CompanyForumType;

/**
 * 对象功能:  我的回复
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/3/21 16:05
 */
public class AgriculturalForumMyReplyListActivity extends BasePagerActivity {

  private String jobno;

  @Override protected void onCreate(Bundle arg0) {
    jobno = getIntent().getStringExtra(AgriculturalForumMyReplyListFragment.EXTRA_JOBNO);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {
    CompanyForumType companyForumType = (CompanyForumType) getIntent().getSerializableExtra(
        AgriculturalForumListFragment.EXTRA_VALUE);
    String from = AgriculturalForumListFragment.NEED;
    String jobno = getIntent().getStringExtra(AgriculturalForumListFragment.EXTRA_JOBNO);
    return AgriculturalForumListFragment.newInstance(companyForumType, from, jobno);
  }

  @Override protected Fragment createFragmentTwo() {
    return AgriculturalForumMyReplyListFragment.newInstance(jobno);
  }

  @Override protected int[] createTitle() {
    return new int[] { R.string.myNoAnswers, R.string.myAnswers };
  }
}
